/*
 * @Author: Sunye
 * @Date: 2025-07-14 00:38:13
 * @LastEditors: Sunye
 * @LastEditTime: 2025-07-14 09:51:55
 * @Description: 
 */
const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    res.send('user');
})

router.get('/:id', (req, res) => {
    console.log(req);
    res.send(req.params.id)
})

router.post('/userAdd', (req, res) => {
    console.log(req.body);
    res.send({
        code: 200,
        data: 1,
        message: '新增成功'
    })
})


module.exports = router